package com.kumi.shop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kumi.common.utils.PageUtils;
import com.kumi.shop.product.bean.Attr;
import com.kumi.shop.product.bean.ProductAttrValue;
import com.kumi.shop.product.vo.AttrGroupRespVo;
import com.kumi.shop.product.vo.AttrRespVo;
import com.kumi.shop.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author æ­å°
 * @email 1971240051@qq.com
 * @date 2021-12-30 15:40:51
 */
public interface AttrService extends IService<Attr> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBasePage(Map<String, Object> params, Long spuId, String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<Attr> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRespVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrs(List<Long> attrIds);
}

